﻿using System;
using System.Runtime.CompilerServices;

namespace Quicklight.Mobile.Cordova.Contacts {

   [IgnoreNamespace]
   public class Contact {
      [ScriptName("id")]
      public string Id;
      [ScriptName("displayName")]
      public string DisplayName;
      [ScriptName("name")]
      public ContactName Name;
      [ScriptName("nickname")]
      public string Nickname;
      [ScriptName("phoneNumbers")]
      public ContactField[] PhoneNumbers;
      [ScriptName("emails")]
      public ContactField[] Emails;
      [ScriptName("addresses")]
      public ContactAddress[] Addresses;
      [ScriptName("ims")]
      public ContactField[] Ims;
      [ScriptName("organizations")]
      public ContactOrganization[] Organizations;
      [ScriptName("birthday")]
      public DateTime Birthday;
      [ScriptName("note")]
      public string Note;
      [ScriptName("photos")]
      public ContactField[] Photos;
      [ScriptName("categories")]
      public ContactField[] Categories;
      [ScriptName("urls")]
      public ContactField[] Urls;

      [ScriptName("clone")]
      public Contact Clone() {
         return null;
      }

      [ScriptName("remove")]
      public void Remove(ContactRemoveCallback contactUpdate, ContactErrorCallback contactError) {
      }

      [ScriptName("save")]
      public void Save(ContactSaveCallback contactUpdate, ContactErrorCallback contactError) {
      }
   }

}
